﻿Public Class PlugIn
    Implements Framework.Plugin.IPlugIn

    Friend Const TabKey As String = "ToDo"

    Private mHost As Framework.Plugin.IHost
    Private mUC As ToDoListControl

    Private Sub Start(ByVal host As Framework.Plugin.IHost) Implements Framework.Plugin.IPlugIn.Start
        mHost = host
        mUC = New ToDoListControl
        host.AddTabImage(TabKey, My.Resources.ToDo)
        host.AddTab(TabKey, TabKey, "To Do List", mUC)
        mUC.Start(host)

        Framework.Activities.ToDoProvider.RegisterProvider(mUC)
    End Sub
    Private Sub [Stop](ByVal message As Framework.Message) Implements Framework.Plugin.IPlugIn.Stop
        mUC.Stop()
        mUC = Nothing
    End Sub

    Private Sub MenuItemClicked(ByVal menuItemKey As String) Implements Framework.Plugin.IPlugIn.MenuItemClicked
    End Sub
End Class
